package cn.com.inossem.model;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;
import cn.com.inossem.activity.R;

public class FriendInfoBean implements Parcelable, Serializable {

	public int id;
	public String username;
	public String phone;
	public int icon_id = R.drawable.user;

	public FriendInfoBean() {

	}

	private FriendInfoBean(Parcel in) {
		id = in.readInt();
		username = in.readString();
		phone = in.readString();
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {

		dest.writeInt(id);
		dest.writeString(username);
		dest.writeString(phone);
	}

	public static final Parcelable.Creator<FriendInfoBean> CREATOR = new Parcelable.Creator<FriendInfoBean>() {
		public FriendInfoBean createFromParcel(Parcel in) {
			return new FriendInfoBean(in);
		}

		public FriendInfoBean[] newArray(int size) {
			return new FriendInfoBean[size];
		}
	};

}
